import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../../widgets/account_textField2.dart';
import '../../widgets/myappbar.dart';

class RealStep1Page extends StatefulWidget {
  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<RealStep1Page> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return
      Scaffold(
        backgroundColor: Colors.white,
        appBar: MyAppBar(context: context, title: '实名认证',),
        body: _content(),
      );
  }
  
  Widget _content(){
    return Container(
      padding: EdgeInsets.fromLTRB(20.w, 22.h, 30.w, 0),
      child: Stack(
        children: [
          Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Row(
                children: [
                  Text('输入身份信息',style: TextStyle(
                      color: Color(0xFF333333),
                      fontSize: 15.sp,
                      fontWeight: FontWeight.bold
                  ),),
                  Text('*',style: TextStyle(
                    color: Color(0xFFF43F50),
                    fontSize: 15.sp,
                  ),),

                ],
              ),

              Text('认证后可进行商品交易',style: TextStyle(
                color: Color(0xFF666666),
                fontSize: 13.sp,
              ),),

              Container(
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(6.r),
                    color: Color(0xFFF9F9F9)
                ),
                height: 48.h,
                margin: EdgeInsets.only(
                  top: 15.h,
                ),
                child: AccountEdit2Text(
                  //获取返回的输入内容
                  hitText: '请输入姓名',
                  inputColor: 0xFFF9F9F9,
                  contentStrCallBack: (content) {}, key: ValueKey('name'),
                ),
              ),
              Container(
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(6.r),
                    color: Color(0xFFF9F9F9)
                ),
                height: 48.h,
                margin: EdgeInsets.only(
                  top: 15.h,
                ),
                child: AccountEdit2Text(
                  //获取返回的输入内容
                  hitText: '请输入身份证号',
                  inputColor: 0xFFF9F9F9,
                  contentStrCallBack: (content) {}, key: ValueKey('number'),
                ),
              ),


            ],
          ),
          Positioned(
              bottom: 78.h,
              child: Container(
            alignment: Alignment.center,
            width: MediaQuery.of(context).size.width - 50.w,
            height: 42.h,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(22.r),
              color: Color(0xFFEF3D4E),
            ),
            child: Text('下一步',style: TextStyle(
                color: Colors.white,
                fontSize: 14.sp
            ),),
          ))
        ],
      ),
    );
  }
}